<?php
include "../../public/config/config.php";
include "../../public/include/funcs.php";
$link=conn($cfg_dbhost,$cfg_dbuser,$cfg_dbpwd,$cfg_dbname,$cfg_dbchar);
// var_dump($link);
/*
 * 交易状态：  'trade_status' => 'TRADE_SUCCESS', 
 * 交易创建时间：'gmt_create' => '2019-08-17 14:58:53',
 * 商户订单号：'out_trade_no' => '2019817145621238',
 * 订单标题：'subject' => '测试',
 * 订单金额：'total_amount' => '0.01',
 * 实收金额：'receipt_amount' => '0.01',
 * 商品描述：'body' => '5555',
*/
$add_arr['trade_status'] = "TRADE_SUCCESS";
$add_arr['gmt_create'] = '2019-08-17 14:58:53';
$add_arr['out_trade_no'] = '2019817145621238';
$add_arr['subject'] = '测试';
$add_arr['total_amount'] = '0.01';
$add_arr['receipt_amount'] = '0.01';
$add_arr['body'] = '5555';

$re = add($link, "pay_zfb_sx", $add_arr);
var_dump($re);

?>